package com.ruoyi.web.controller.laiqianba.merchant;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.db.domain.MerchantUserInfo;
import com.ruoyi.merchantdata.service.IMerchantUserInfoService;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.web.service.IMerchantService;
import com.ruoyi.web.wrapper.MerchantUserInfoWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 商户成员信息Controller
 * 
 * @author ruoyi
 * @date 2023-09-02
 */
@RestController
@RequestMapping("/merchant/userInfo")
public class MerchantUserInfoController extends BaseController
{
    @Autowired
    private IMerchantUserInfoService merchantUserInfoService;

    @PreAuthorize("@ss.hasPermi('merchant:userInfo:list')")
    @GetMapping("/list")
    public TableDataInfo list(MerchantUserInfo merchantUserInfo)
    {
        startPage();
        List<Map<String, Object>> list = merchantUserInfoService.selectMerchantUserInfoMapList(merchantUserInfo);
        list = new MerchantUserInfoWrapper(list).wrap();
        return getDataTable(list);
    }

}
